//
//  HRZStoreMainRecommendGoodsCell.m
//  EMarket
//
//  Created by 物联速通信息技术有限公司 on 2018/5/24.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZStoreMainRecommendGoodsCell.h"

// Controllers

// Models
#import "HRZGoodsModel.h"
// Views

// Vendors
#import <UIImageView+WebCache.h>
// Categories

// Others

@interface HRZStoreMainRecommendGoodsCell ()
@property (weak, nonatomic) IBOutlet UIImageView *goodsImgeView;
@property (weak, nonatomic) IBOutlet UILabel *goodsName;
@property (weak, nonatomic) IBOutlet UILabel *goodsDescribe;
@property (weak, nonatomic) IBOutlet UILabel *goodsPirce;

@end

@implementation HRZStoreMainRecommendGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setGoodsModel:(HRZGoodsModel *)goodsModel {
    _goodsModel = goodsModel;
    
    [_goodsImgeView sd_setImageWithURL:[NSURL URLWithString:_goodsModel.imageURL] placeholderImage:PLACEHOLDERIMAGE];
    _goodsName.text = _goodsModel.goodsName;
    _goodsDescribe.text = _goodsModel.describe;
    _goodsPirce.text = [NSString stringWithFormat:@"¥ %@", _goodsModel.realPrice];
}

@end
